import index from '@/components/testing/index' // 隐患管理-评分详情
import testing from '@/components/testing/testing' // 隐患管理-评分详情
import lookdetail from '@/components/testing/lookdetail' // 隐患管理-评分详情
import lookcompany from '@/components/testing/lookcompany' // 隐患管理-评分详情
import notice from '@/components/testing/notice' // 隐患管理-评分详情

import searchnew from '@/components/HideManage/hideRegister/search'
import yhposition from '@/components/HideManage/hideRegister/yhposition'
import yhperson from '@/components/HideManage/hideRegister/yhperson'
import yhcompany from '@/components/HideManage/hideRegister/yhcompany'
import yhclass from '@/components/HideManage/hideRegister/yhclass'
import hideType from '@/components/HideManage/hideRegister/hideType'
import changesearch from '@/components/HideManage/hideRegister/changesearch'

import checkdec from '@/components/HideManage/hideRegister/checkdec'

// import hidecheck from '@/components/HideManage/hidecheck'
import hidechecklook from '@/components/HideManage/hidecheck/lookcompany'
import projectType from '@/components/HideManage/hidecheck/projectType'
import projectarea from '@/components/HideManage/hidecheck/projectarea'

import HideRegister from '@/components/HideManage/hideRegister'
import newHideRegister from '@/components/HideManage/hideRegister/newIndex'
export default [

    {
        path: '/testing',
        name: 'testing',
        component: index,
        meta: {
            keepAlive: true,
            title: '日常检查'
        },
        children: [{
            path: '/',
            name: 'testing',
            component: testing,
            meta: {
                keepAlive: true,
                title: '日常检查'
            }
        },
        {
            path: 'lookdetail',
            name: 'lookdetail',
            component: lookdetail,
            meta: {
                title: '首页'
            }
        },
        {
            path: 'lookcompany',
            name: 'lookcompany',
            component: lookcompany,
            meta: {
                title: '选择单位'
            }
        },
        {
            path: 'notice',
            name: 'notice',
            component: notice,
            meta: {
                title: '隐患通知单'
            }
        }
        ]
    },
    {
        path: '/searchnew',
        name: 'searchnew',
        component: searchnew,
        meta: {
            keepAlive: false,
            title: '隐患类别'
        }
    },
    {
        path: '/yhperson',
        name: 'yhperson',
        component: yhperson,
        meta: {
            keepAlive: true,
            title: '整改责任人'
        }
    },
    {
        path: '/yhcompany',
        name: 'yhcompany',
        component: yhcompany,
        meta: {
            keepAlive: true,
            title: '整改单位'
        }
    },
    {
        path: '/yhclass',
        name: 'yhclass',
        component: yhclass,
        meta: {
            keepAlive: true,
            title: '整改单位'
        }
    },
    {
        path: '/yhposition',
        name: 'yhposition',
        component: yhposition,
        meta: {
            keepAlive: true,
            title: '隐患部位'
        }
    },
    {
        path: '/hideType',
        name: 'hideType',
        component: hideType,
        meta: {
            keepAlive: true,
            title: '隐患类型'
        }
    },
    {
        path: '/checkdec',
        name: 'checkdec',
        component: checkdec,
        meta: {
            keepAlive: true,
            title: '整改措施'
        }
    },
    {
        path: '/hideRegister', //  隐患登记
        name: 'HideRegister',
        component: HideRegister,
        meta: {
            title: '隐患登记',
            keepalive: true
        }
    },
    {
        path: '/newHideRegister', //  直接隐患登记
        name: 'newHideRegister',
        component: newHideRegister,
        meta: {
            title: '隐患登记',
            keepAlive: true
        }
    },
    {
        path: '/changesearch', //  隐患登记
        name: 'changesearch',
        component: changesearch,
        meta: {
            title: '隐患描述',
            keepalive: true
        }
    },
    {
        path: '/hidecheck', //  隐患登记
        name: 'hidecheck',
        // component: (resolve) => require(['@/components/HideManage/hidecheck'], resolve),
        component: (resolve) => require(['@/components/HideManage/hidecheck'], resolve),
        meta: {
            title: '隐患查询',
            keepalive: true
        }
    },
    {
        path: '/hidechecklook', //  隐患登记
        name: 'hidechecklook',
        component: hidechecklook,
        meta: {
            title: '隐患查询',
            keepalive: true
        }
    },
    {
        path: '/projectType', //  隐患登记
        name: 'projectType',
        component: projectType,
        meta: {
            title: '工程类别',
            keepalive: true
        }
    },
    {
        path: '/projectarea', //  隐患登记
        name: 'projectarea',
        component: projectarea,
        meta: {
            title: '选择区域',
            keepalive: true
        }
    },
    {
        path: '/lookclass', //  申请动火班组
        name: 'lookclass',
        component: (resolve) => require(['@/components/workrisk/hotwork/lookclass'], resolve),
        meta: {
            title: '申请动火班组',
            keepalive: true
        }
    }
]